package com.example.lab3.infra.mapper;


import com.example.lab3.api.dto.EmployeeDTO;
import com.example.lab3.domain.entity.Employee;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EmployeeMapper {

    List<Employee> findEmployeeByCondition(Employee employee);

    Employee findEmployeeById(@Param("employeeId") Integer employeeId);

    Employee getEmployeeWithLeader(EmployeeDTO employeeDTO);

    /**
     * 获取下属员工
     * @param employeeDTO
     * @return
     */
    List<Employee> getEmployeeList(EmployeeDTO employeeDTO);


    void updateEmployee(EmployeeDTO employeeDTO);

    void insertEmployee(EmployeeDTO employeeDTO);

}
